//
//  AppDelegate.swift
//  PersonnalDiary
//
//  Created by 徐宽阔 on 15/9/26.
//  Copyright © 2015年 XDKOO. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        
//        window?.rootViewController = MainTabBarController()
        window?.rootViewController = NewfeatureViewController()
        
        window!.makeKeyAndVisible()
        
        // 统一设置主题样式
        UINavigationBar.appearance().tintColor = UIColor.orangeColor()
        UITabBar.appearance().tintColor = UIColor.orangeColor()
        UITabBar.appearance().backgroundImage = UIImage(named: "tabbar_background")
        
        
        return true
    }
}

func XDKLog<T>(message: T, fileName: String = __FILE__ , line: Int = __LINE__ , method: String = __FUNCTION__)
{
    #if DEBUG
    print("<\((fileName as NSString).lastPathComponent)>[\(line)]-\(method): \(message)")
    #endif
}

